/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package controle;

import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
import java.util.Locale;

/**
 *
 * @author pc
 */
public class HorarioAtual {
    
    GregorianCalendar calendar;
    
    public String horaLocal(){
        Locale locale = new Locale("pt","BR"); 
        calendar = new GregorianCalendar(); 
        SimpleDateFormat formatador = new SimpleDateFormat("HH':'mm",locale); 
        
        return formatador.format(calendar.getTime());
    }
    
    
    
    
}
